package com.hzlj.position.locate.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fz.common.base.core.JacksonTypeHandlerIgnoreNull;
import com.hzlj.position.locate.common.dto.messageToday.MessageTodayNoticeUsersDTO;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * 当天消息通知(MessageToday)实体类
 *
 * @author makejava
 * @since 2024-01-10 16:38:24
 */
@Data
@ToString
@TableName(value = "message_today", autoResultMap = true)
public class MessageToday {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO, value = "id")
    private String id;
    /**
     * 归属日期
     */
    @TableField(value = "belong_day")
    private Date belongDay;
    /**
     * 发送模版
     */
    @TableField(value = "message_template")
    private String messageTemplate;
    /**
     * 模板参数
     */
    @TableField(value = "message_params")
    private String messageParams;
    /**
     * 用户-jsonarray-MessageNoticeUserDTO
     */
    @TableField(value = "message_users", typeHandler = JacksonTypeHandlerIgnoreNull.class)
    private MessageTodayNoticeUsersDTO messageUsers;
    /**
     * 业务ID
     */
    @TableField(value = "service_id")
    private String serviceId;
    /**
     * 校验参数
     */
    @TableField(value = "check_params")
    private String checkParams;
    /**
     * 通知时间
     */
    @TableField(value = "notice_time")
    private Date noticeTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
}
